#include <iostream>
#include "CMap.hpp"
using namespace std;
int main()
{
    CMap *pMap = new CMap(6);
    Node *pNodeA = new Node('A');
    Node *pNodeB = new Node('B');
    Node *pNodeC = new Node('C');
    Node *pNodeD = new Node('D');
    Node *pNodeE = new Node('E');
    Node *pNodeF = new Node('F');
    pMap->addNode(pNodeA);
    pMap->addNode(pNodeB);
    pMap->addNode(pNodeC);
    pMap->addNode(pNodeD);
    pMap->addNode(pNodeE);
    pMap->addNode(pNodeF);
    pMap->setValueToMatrixUndirectedGraph(0,1,6);
    pMap->setValueToMatrixUndirectedGraph(0,4,5);
    pMap->setValueToMatrixUndirectedGraph(0,5,1);
    pMap->setValueToMatrixUndirectedGraph(1,2,3);
    pMap->setValueToMatrixUndirectedGraph(1,5,2);
    pMap->setValueToMatrixUndirectedGraph(2,5,8);
    pMap->setValueToMatrixUndirectedGraph(2,3,7);
    pMap->setValueToMatrixUndirectedGraph(3,5,4);
    pMap->setValueToMatrixUndirectedGraph(3,4,2);
    pMap->setValueToMatrixUndirectedGraph(4,5,9);
//    pMap->primTree(0);
    pMap->kruskalTree();

}